<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="/bsc/js/common/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/bsc/js/common/bootstrap/css/bootstrap-theme.min.css">
<script src="/bsc/js/common/bootstrap/js/jquery-3.1.1.min.js"></script>
<script src="/bsc/js/common/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
        <form action="/bsc/updateshop" method="post" id="form1"  enctype="multipart/form-data" class="form-horizontal">
 <table  width="900" align="center" height="500">
			
        <tr>
        <td align="right">商店名称&nbsp;</td>
        <td>
        <input type="hidden" class="form-control" name ="shop_id" value="${list.shop_id }">
			<input type="text" class="form-control" name ="shop_name" value="${list.shop_name }">
		</td>
          <td align="right">商家简称&nbsp;</td>
        <td><input type="text" class="form-control" name ="short_name" value="${list.short_name }" id="img1"></td>
        </tr>
         <tr>
        <td align="right">月目标现金收入&nbsp;</td>
        <td>
			<input type="text" class="form-control" name ="month_cash_in" value="${list.month_cash_in }" id="img2">
		</td>
          <td align="right">月目标消耗收入&nbsp;</td>
        <td><input type="text" class="form-control" name ="month_expend_in" value="${list.month_expend_in }"></td>
        </tr>
        <tr>
        <td>&nbsp;</td>
        <td><input type="image"  src="/bsc${list.shop_image }" width="100"></td>
        <td>&nbsp;</td>
        <td><input type="image"  src="/bsc${list.shop_detail_image }" width="100">
        <input type="hidden" name="shop_image" value="${list.shop_image}"/>
        <input type="hidden" name="shop_detail_image" value="${list.shop_detail_image }"/></td>
        </tr>
        
        <tr>
        <td align="right">缩略图片&nbsp;</td>
        <td>
        
        <input type="file" class="form-control" name ="file" id="img3" >
        </td>
         <td align="right">封面图片&nbsp;</td>
           
        <td><input type="file" class="form-control" name ="file" id="img4"></td>
        </tr> 
        <tr>
         <td align="right">店铺地址&nbsp;</td>
        <td><input type="text" class="form-control" name ="shop_address" value="${list.shop_address }"></td>
        <td align="right">店铺主营项目&nbsp;</td>
        <td>
        <select  name="shop_project" id="shop_project" class="form-control">
		<option value="1" ${list.shop_project=="1"?"selected":"" }>美容</option>
		<option value="2"  ${list.shop_project=="2"?"selected":"" }>美甲</option>
		</select>
        </td>
        </tr>
        <tr>
         <td align="right">电话&nbsp;</td>
        <td><input type="text" class="form-control" name ="shop_phone" value="${list.shop_phone }"></td>
         <td align="right">状态&nbsp;</td>
        <td>
		<select  name="show_status" class="form-control">
		<option value="1" ${list.show_status=="1"?"selected":"" }>启用</option>
		<option value="0" ${list.show_status=="0"?"selected":"" }>禁用</option>
		</select>
		</td>
        </tr>
          <tr align="center">
        <td colspan="4">
        <input type="submit" class="btn btn-primary" value="提交"></td>
        </tr>
        </table>
        
    </form>
</body>
</html>
<script type="text/javascript">
/* $("#img3").on("click",function(){
	$("#img1").val()=#("img3").val();
}) */
</script>